<template>
  <div class="main-layout">
    <NavBar />
    <div class="main-content">
      <router-view /> <!-- 内容展示区域 -->
    </div>
    <AIAssistant />
  </div>
</template>

<script setup>
  import NavBar from '@/components/NavBar.vue'
  import AIAssistant from '@/components/AIAssistant.vue'
  
</script>

<style lang="scss" scoped>
.main-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  .main-content {
    flex: 1;
    margin-top: 50px; /* 为固定导航栏预留空间 */
    padding: 20px;
  }
}
</style>